﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using Microsoft.Office.Interop.Excel;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PanhuaWin.系统管理
{
    public  class Bus_StockOutVolume
    {       /// <summary>
            ///
            /// </summary>
        [Display(Name = "guid")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid guid { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Key]
        [Display(Name = "Bguid")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid Bguid { get; set; }

        /// <summary>
        ///出库单号
        /// </summary>
        [Display(Name = "出库单号")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string DocCode { get; set; }

        /// <summary>
        ///出库行号
        /// </summary>
        [Display(Name = "出库行号")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? RowNumber { get; set; }

        /// <summary>
        ///工厂
        /// </summary>
        [Display(Name = "工厂")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string WorkShopCode { get; set; }

        /// <summary>
        ///仓库编号
        /// </summary>
        [Display(Name = "仓库编号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string WarehouseCode { get; set; }

        /// <summary>
        ///库位编号
        /// </summary>
        [Display(Name = "库位编号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string StorageLocation { get; set; }

        /// <summary>
        ///原料卷号
        /// </summary>
        [Display(Name = "原料卷号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string VolumeCode { get; set; }

        /// <summary>
        ///新卷号
        /// </summary>
        [Display(Name = "新卷号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string VolumeCodeNew { get; set; }

        /// <summary>
        ///存货编号
        /// </summary>
        [Display(Name = "存货编号")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string InventoryCode { get; set; }

        /// <summary>
        ///规格
        /// </summary>
        [Display(Name = "规格")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string Size { get; set; }

        /// <summary>
        ///厚度
        /// </summary>
        [Display(Name = "厚度")]
        [DisplayFormat(DataFormatString = "18,3")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? Thick { get; set; }

        /// <summary>
        ///宽度
        /// </summary>
        [Display(Name = "宽度")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? Width { get; set; }

        /// <summary>
        ///材质
        /// </summary>
        [Display(Name = "材质")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string Material { get; set; }

        /// <summary>
        ///产地
        /// </summary>
        [Display(Name = "产地")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string Address { get; set; }

        /// <summary>
        ///重量
        /// </summary>
        [Display(Name = "重量")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? Weight { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "CID")]
        [MaxLength(36)]
        [Column(TypeName = "char(36)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string CID { get; set; }

        /// <summary>
        ///虚拟值
        /// </summary>
        [Display(Name = "虚拟值")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        [Editable(true)]
        public string Virtual { get; set; }
        /// <summary>
        ///成品规格
        /// </summary>
        [Display(Name = "成品规格")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        public string OutputSize { get; set; }

        /// <summary>
        ///成品规格
        /// </summary>
        [Display(Name = "成品规格")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        public string ProductSize { get; set; }

        /// <summary>
        ///去向
        /// </summary>
        [Display(Name = "去向")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        public string NextWorkType { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "Remark")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        public string Remark { get; set; }
        /// <summary>
        ///存货名称
        /// </summary>
        [Display(Name = "存货名称")]
        [MaxLength(50)]
        [Column(TypeName = "nvarchar(50)")]
        public string InventoryName { get; set; }
    }
}
